<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/buy">
    <h1 th:if="${remaining} eq '1'">秒杀进行中...</h1>
    <h1 th:if="${remaining} eq '0'">秒杀未开始或已结束！</h1>
    <div>
        商品：
        <input type="radio" name="name" value="product">超值商品<br>
    </div>
    <div>
        数量：<input name="count" value="1"> (限购1件）
    </div>
    <button th:disabled="${remaining == '0'} ? 'true':'false'" type="submit">提交</button>
</form>

</body>
</html>